package com.education.user.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 广告位轮播表 sys_banner
 *
 * @author d
 * @date 2020-01-17
 */
@Table(name = "sys_banner")
public class SysBanner implements Serializable {
    private static final long serialVersionUID=1L;

    /**  */
    @Id
    private Integer id;

    /** 广告图名称 */
    private String name;

    /** 广告位路径 */
    private String url;

    /** 学校ID */
    private Integer schoolId;

    /** 广告位类型（1:视频，2:图片） */
    private String type;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private String createTime;

    private String isdisplay;

    @Column
    private Integer sort;

//    private Integer pageNum;
//    private Integer pageSize;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(Integer schoolId) {
        this.schoolId = schoolId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getIsdisplay() {
        return isdisplay;
    }

    public void setIsdisplay(String isdisplay) {
        this.isdisplay = isdisplay;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }


}